import request from '@/utils/request'
//使用说明
//  export const getList = data => request.get('/api/list', data, false,'载入中')
//              页面调用名  请求参数       请求类型  接口地址         loading是否显示  title显示标题
/*页面中调用方法：（若无请求参数则留空,例：this.$api.getList()）
this.$api.getList(params).then(res => {
	
})
*/
//全局参数

//获取小店

export const xiaodian = data => request.post('/user/xiaodian',data)
export const gettuanyuan = data => request.post('/user/gettuanyuan',data)

export const yzorder = data => request.post('/user/yzorder',data,true,'验证中请稍候...')

export const check_reg = data => request.get('/index/check_reg')

export const jfcontent = data => request.get('/index/jfcontent')

export const qr = data => request.post('/user/qr',data)
export const shopurl = data => request.post('/index/shopurl');

export const getjf = data => request.post('/user/getjf',data,false);

export const areas = data => request.get('/index/areas');

export const citys = data => request.get('/index/citys',data)


//问卷记录
export const record_wenjuan = data => request.post('/tk/record_wenjuan',data,false)

//问卷详情
export const wenjuan_info = data => request.post('/tk/wenjuan_info',data)
//提交问卷
export const wenjuan_tj = data => request.post('/tk/wenjuan_tj',data)



//3d挂件兑换和列表
export const print3D = data => request.post('/user/print3D', data)
export const shoubanlist = data => request.post('/api/shoubanlist', data)

export const myduijiang = data => request.post('/user/myduijiang', data)

//转盘抽奖
export const choujiang = data => request.post('/user/choujiang', data)

//积分日志
export const jflog = data => request.post('/user/jflog', data)



export const gamelist = data => request.post('/api/gamelist', data)

//核销相关
export const hexiao = data => request.get('/user/hexiao', data)

//血站列表
export const xuezhan_list = data => request.post('/api/xuezhan_list', data)

export const hexiao2 = data => request.post('/user/hexiao', data)

//单页
export const danye = data => request.post('/api/danye', data)

export const tkset = data => request.post('/api/tkset')
//列表
export const getList = data => request.get('/api/lists', data)
//登陆
export const login = data => request.post('/api/login', data,false)
//注册
export const register = data => request.post('/index/register_xcx', data)

//更新城市

export const uparea = data => request.post('/user/uparea', data)
//地址管理
export const addlist = data => request.post('/user/addlist', data)
export const add_useradd = data => request.post('/user/add_useradd', data)
export const del_useradd = data => request.post('/user/del_useradd', data)
export const adddefault = data => request.post('/user/adddefault', data)

export const daka = data => request.post('/user/daka', data)

//设定修改
export const setting = data => request.post('/api/setting', data)

export const jiemi = data => request.post('/index/jiemi', data)
//忘记密码
export const forgetPassWord = data => request.post('/api/forgetPassWord', data)
//登陆用户信息
export const baseInfo = data => request.get('/user/baseinfo', data)
//保存用户信息
export const baseInfoSave = data => request.post('/user/baseInfoSave', data)

//检测版本升级
export const checkVersion = data => request.post('/api/checkVersion2', data,false)
//文章详情
export const detail = data => request.get('/api/detail', data)

//课后新闻
export const teachernews = data => request.get('/user/teachernews', data)
export const teachernews_info = data => request.get('/user/teachernews_info', data)


//提交实名认证资料
export const auth = data => request.post('/api/auth', data)
//修改密码
export const password = data => request.post('/api/password', data)
//注销帐号
export const logout_account = data => request.post('/api/logout_account', data)
//修改手机号
export const phoneBind = data => request.get('/api/phoneBind', data)
//修改邮箱
export const emailBind = data => request.get('/api/emailBind', data)
//提交反馈
export const feedback = data => request.post('/api/feedback', data)
//导游词
export const dyclist = data => request.post('/api/dyclist', data)
export const dycinfo = data => request.post('/api/dycinfo', data)
//地区接口
export const arealist = data => request.post('/api/arealist', data)

//视频中心
export const video = data => request.post('/video/index',data)
export const videoinfo = data => request.post('/video/videoinfo',data)

//视频问答
export const mianshi = data => request.post('/video/mianshi', data)


//问卷列表
export const wenjuan_list = data => request.post('/tk/wenjuan_list', data)

//章节练习相关
export const zjlx = data => request.post('/tk/zjlx', data)

export const record = data => request.post('/tk/record', data,false)  //这个修改为积分获取相关逻辑
export const shoucang = data => request.post('/tk/shoucang', data,false)
export const zuoti = data => request.post('/tk/zuoti', data)
export const sendBc = data => request.post('/tk/sendBc', data)
export const jiucuo = data => request.post('/tk/jiucuo', data)
export const biji = data => request.post('/tk/biji', data)


export const article = data => request.post('/api/article', data)
export const article_info = data => request.post('/api/article_info', data)
export const category = data => request.post('/api/category', data)


//组题模拟
export const kaoshi_mn = data => request.post('/tk/kaoshi_mn', data)
export const kstj_dt = data => request.post('/tk/kstj_dt', data)

export const ks_lit = data => request.post('/tk/ks_lit', data)
export const moni = data => request.post('/tk/moni', data)


//课后考试
export const ks_Record = data => request.post('/tk/ks_Record', data)
//查看试卷
export const seeexam_dt = data => request.post('/tk/seeexam_dt', data)

//我的错题
export const wdct = data => request.post('/tk/wdct', data)
export const wdyt = data => request.post('/tk/wdyt', data)
export const wdzt = data => request.post('/tk/wdzt', data)

//我的收藏
export const wdsc = data => request.post('/tk/wdsc', data)
export const scyt = data => request.post('/tk/scyt', data)
export const sczt = data => request.post('/tk/sczt', data)
export const wong = data => request.post('/tk/wong', data)

//班级中心
export const showclass = data => request.post('/user/showclass', data)
export const joinclass = data => request.post('/user/joinclass', data)
export const fuxi = data => request.post('/tk/fuxi', data)

export const kh_kaoshi_gd = data => request.post('/tk/kh_kaoshi_gd', data)
export const kh_kaoshi = data => request.post('/tk/kh_kaoshi', data)


export const clearti = data => request.post('/tk/clearti', data)
//单题目清除
export const qingchu = data => request.post('/tk/qingchu', data)

//支付接口
export const pro_class = data => request.post('/pay/pro_class', data)
export const productinfo = data => request.post('/pay/productinfo', data)
export const addorder = data => request.post('/pay/addorder', data)
export const payorder = data => request.post('/pay/payorder', data)
export const checkorder = data => request.post('/pay/checkorder', data)

//我的订单
export const myorder = data => request.post('/user/myorder', data)

export const chongzhi = data => request.post('/user/chongzhi', data)

//终极押题真题详情
export const kaoshi = data => request.post('/tk/kaoshi', data)
//首页
export const index = data => request.post('/api/index', data)

//微信登录
export const wxlogin = data => request.post('/index/wxLogin', data,false)

//小程序快捷登录
export const quicklogin = data => request.post('/api/quicklogin', data)

//验证码发送
export const getcode = data => request.post('/index/getcode', data)

//用户图表
export const getchart = data => request.post('/user/getchart', data)
export const getchart_user = data => request.post('/user/getchart_user', data)

//优惠券查询
export const coupon = data => request.post('/pay/coupon', data)
